/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 洪汤泽大帅哥
 * Date: 2024-10-15
 * Time: 22:08
 */

class Dog1 {
    public String name;
    public int age;
    public String variety;

     Dog1(String n, int a, String v) {
         name=n;
         age=a;
         variety=v;
     }

    public void bark() {
        System.out.println((name+" 正在汪汪汪!"));
    }

    public void wagTail() {
        System.out.println(name+ " 正在摇尾巴");
    }
}

